function Path({lines, stroke,strokeWidth,onClick}) {
    return (<path
        fill="none"
        stroke={stroke}
        strokeWidth={strokeWidth}
        onClick={onClick}
        d={lines.map((v,i) => `${i?'L':'M'} ${v[0]}, ${v[1]}`).join('\n')} 
    />)
}
export default Path;